package media_player;

import media_player.abstract_factory.PlayerFactory;
import media_player.abstract_player_list.PlayerList;
import media_player.abstract_window.MainWindow;
import media_player.utils.XMLUtil;

public class Client {
    public static void main(String[] args) {
        PlayerFactory playerFactory = (PlayerFactory) XMLUtil.getBean();
        MainWindow mainWindow = playerFactory.createMainWindow();
        PlayerList playerList = playerFactory.createPlayerList();
        mainWindow.load();
        playerList.play();
    }
}
